<template>
  <div class="swiper-container" :class="name">
    <div class="swiper-wrapper">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import Swiper from 'swiper'
import 'swiper/css/swiper.css'

export default {
  props: {
    name: String,
    swiperOptions: {
      type: Object
    }
  },
  mounted () {
    new Swiper('.' + this.name, this.swiperOptions)
  }
}
</script>

<style scoped lang="scss">

</style>
